/**
 * 
 */
package cre.gutwo.handle;

import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.commons.io.FilenameUtils;

/**
 * @author Cre.Gu
 *
 */
public abstract class DefaultDataHandle implements DataHandle {

	protected String gainDest(String orgiPath, String destPath) {
		File of = new File(orgiPath);
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

		destPath += "/" + FilenameUtils.getBaseName(of.getName()) + "-" + sdf.

		format(new Date()) + ".csv";

		return destPath;
	}

}
